package com.huawang.mdesign.model.service.dto;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author baibf
 * @description
 * @date 2022/7/6 20:16
 **/
@Data
public class ApplyLegendItemDTO extends ProjectIdDTO {

    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @NotEmpty(message = ParamErrorConstants.NO_LEGENDITEMIDS)
    @Schema(title = "图中所有图例项模型Id")
    private List<String> legendItemIds;

    @NotEmpty(message = ParamErrorConstants.NO_INSTANCE_IDS)
    @Schema(title = "图中除图例项外的所有模型Id")
    private List<String> instanceIds;
}
